#pragma once
#include "AI.h"

class CPlayer;
class CBall;

class CAlly :
	public CAI
{
public:
	CAlly();
	~CAlly();
	void Update(float elapsedTime) override;

	int GetType() const override { return ENT_ALLY; }

	// Mutators
	void SetPlayer(CPlayer* player) { m_pPlayer = player; }
	void SetBall(CBall* Ball) { m_pBall = Ball; }
	// Accessors
	CBall* GetBall() const { return m_pBall; }
 	CPlayer* GetPlayer() const { return m_pPlayer; }
private:
	CPlayer* m_pPlayer;
	CBall* m_pBall;

	float m_fTackleTimer = 0.0f;
	float m_fAttackTimer = 0.0f;

	bool m_bTacklePause = false;
	bool m_bAttackPause = false;
};

